// 调用 ecCom 组件库
import { WeaTools } from 'ecCom';


// 接口声明
const join = params => {
  return WeaTools.callApi('/api/system/demo/add', 'POST', params);
};
const getSystemInfo = params => {
  return WeaTools.callApi('/api/ec/dev/app/getSystemInfo', 'GET', params);
};
const getAdvancedSearchCondition = params =>{
	// return WeaTools.callApi('/api/system/em/getCondition','GET',params);
  return WeaTools.callApi('/api/system/demo/getCondition','GET',params);
}
const getTable = params =>{
	return WeaTools.callApi('/api/system/demo/queryList','GET',params);
}
const editLable = params =>{
	return WeaTools.callApi('/api/system/demo/queryById','GET',params);
}
const update = params =>{
	return WeaTools.callApi('/api/system/demo/update','POST',params);
}
const changeStatus = params =>{
	return WeaTools.callApi('/api/system/demo/changeStatus','GET',params);
}
const deleteRecord = params =>{
	return WeaTools.callApi('/api/system/demo/delete','GET',params);
}

// 接口统一导出
export {
  join,
  getSystemInfo,
  getAdvancedSearchCondition,
  getTable,
  editLable,
  update,
  changeStatus,
  deleteRecord
}
